import React from 'react';
import { withRouter } from 'umi';
import { getSource } from '@/pages/EntryManage/utils';
import MetaTags from 'react-meta-tags';
import cn from 'classnames';
import ResetPasswordPc from './index';
import ResetPasswordMobile from '../mobile/ResetPassword/index';
import styles from './index.less';

// 重置密码
const ResetPassword = () => {
    const { isMobile } = getSource();
    return (
        <>
            <div id="scrollContainer" className={cn(styles.pageWrap, { [styles.mobile]: isMobile })}>
                {isMobile && (
                <MetaTags>
                    <title>微微科技官网</title>
                    <meta name="keywords" content="微微科技官网" />
                    <meta name="description" content="微微科技官网" />
                    <meta
                        name="viewport"
                        content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
                        />
                </MetaTags>
                )}
                <>
                    {!isMobile && <ResetPasswordPc />}
                    {isMobile && <ResetPasswordMobile />}
                </>
            </div>
        </>
    );
};

export default withRouter(ResetPassword);
